﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CardGroupAreaEdit.aspx.cs"
    Inherits="LGSVR_WEB.terminal.CardGroupAreaEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/skins/default/css/web.css" rel="stylesheet" type="text/css" />
    <script src="/skins/default/js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="/skins/default/js/common.js" type="text/javascript"></script>
    <script src="/skins/default/js/terminal.js" type="text/javascript"></script>
    <link href="../skins/default/css/tablecloth.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            //分区
            $("#<%=dropActCount.ClientID %>").change(function () {
                var len = $(this).val();
                createAreaTr(len);
                $(".int_txt").blur(function () {

                    if ($(this).val() == "") {
                        $(this).val("0");
                    }
                });
            });




        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
     <div id="ClientMsg">
        <%=MsgContent%></div>
    <div id="MainBody">
        <div class="editnav">
            位置： <a href="CardGroupList.aspx">终端组管理</a>&nbsp;&nbsp;>>&nbsp;&nbsp;<span class="current">分区设置</span></div>
             
    </div>
    <br />
    有效分区个数：
    <asp:DropDownList runat="server" ID="dropActCount">
    </asp:DropDownList>
    <table cellpadding="0" cellspacing="0" id="tbArea" width="600px">
        <tr>
            <th>
            </th>
            <th>
                X
            </th>
            <th>
                Y
            </th>
            <th>
                宽度
            </th>
            <th>
                高度
            </th>
            <th>
                状态
            </th>
        </tr>
        <asp:Repeater ID="rept" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <%#Eval("RowID") %>.
                    </td>
                    <td>
                        <input type='text' style='width: 40px' name='txtAreaBeginX<%#Eval("RowID") %>' class="int_txt"
                            value='<%#Eval("areaBeginX") %>' />
                    </td>
                    <td>
                        <input type='text' style='width: 40px' name='txtAreaBeginY<%#Eval("RowID") %>' class="int_txt"
                            value='<%#Eval("areaBeginY") %>' />
                    </td>
                    <td>
                        <input type='text' style='width: 40px' name='txtAreaWidth<%#Eval("RowID") %>' class="int_txt"
                            value='<%#Eval("areaWidth") %>' />
                    </td>
                    <td>
                        <input type='text' style='width: 40px' name='txtAreaHeight<%#Eval("RowID") %>' class="int_txt"
                            value='<%#Eval("areaHeight") %>' />
                    </td>
                    <td>
                        <select name="dropState<%#Eval("RowID") %>" style="width: 50px">
                            <option value="1" <%#Convert.ToBoolean(Eval("state"))?"selected='selected'":"" %>>启用</option>
                            <option value="0" <%#Convert.ToBoolean(Eval("state"))?"":"selected='selected'" %>>停用</option>
                        </select>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <div class="clear">
    </div>
    <div class="btnEdit">
        <asp:Button ID="btnSave" runat="server" Text="保 存" OnClick="btnSave_Click" />
        <asp:Button ID="btnBack" runat="server" Text="返 回" OnClick="btnBack_Click" />
    </div>
    </form>
</body>
</html>
